<template>
  <div class="_page">
    <div v-html="aboutContent" class="cnt">
    </div>
  </div>
</template>

<script setup lang="ts">
import { useUserStore } from '@/store/modules/user'
import { ref, onMounted } from 'vue'
import { publishGetById } from '@/api/website/publish'
import echarts from '@/components/echarts'
import { useRoute } from 'vue-router'

let userStore = useUserStore()
let route = useRoute()

onMounted(() => {
	getInfo(route.query)
})

let aboutContent = ref('')
const getInfo = async (param) => {
	try{
		let { data } = await publishGetById(param)
		let { contentEn } = data
		aboutContent.value = contentEn
	} catch(e) {
		//TODO handle the exception
	}
}
</script>

<style lang="scss" scoped>
._page {
}
.cnt {
  /* width: 50%; */
  /* min-width: 600px; */
}
</style>